﻿using HiSport.Core.Enum;
using HiSportApplet.Core.Entity;
using HiSportApplet.Core.Enum;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HiSport.Core.Entity.Order
{
    /// <summary>
    /// 固定场地 预定订单
    /// </summary>
    [SugarTable(null, "固定场地 预定订单")]
    public class OrderFixeSite: EntityBase
    {
        [SugarColumn(ColumnDescription = "订单编号", DefaultValue = "", IsNullable = false)]
        [MaxLength(100)]
        public string OrderNum { get; set; }

        /// <summary>
        /// 固定场地开始时间  
        /// </summary>
        [SugarColumn(ColumnDescription = "固定场地开始时间", IsNullable = false)]
        public DateTime FixeSiteStartTime { get; set; }

        /// <summary>
        /// 固定场地结束时间  
        /// </summary>
        [SugarColumn(ColumnDescription = "固定场地结束时间", IsNullable = false)]
        public DateTime FixeSiteEndTime { get; set; }


        /// <summary>
        /// 场地类型
        /// </summary>
        [SugarColumn(ColumnDescription = "场地类型", DefaultValue = "", IsNullable = false)]
        public long SiteTypeId { get; set; }

       

        /// <summary>
        /// 会员ID
        /// </summary>
        [SugarColumn(ColumnDescription = "会员ID", DefaultValue = "0", IsNullable = false)]
        public long MemberId { get; set; }

        /// <summary>
        /// 会员电话
        /// </summary>
        [SugarColumn(ColumnDescription = "会员电话", DefaultValue = "", IsNullable = false)]
        [MaxLength(20)]
        public string Phone { get; set; }


        /// <summary>
        /// 支付方式
        /// </summary>
        [SugarColumn(ColumnDescription = "支付方式", DefaultValue = "0", IsNullable = false)]
        public PayTypeEnum PayType { get; set; }

        /// <summary>
        /// 订单来源
        /// </summary>
        [SugarColumn(ColumnDescription = "订单来源", IsNullable = true)]
        public OrderSourceEnum OrderSource { get; set; }


        /// <summary>
        /// 订单状态
        /// </summary>
        [SugarColumn(ColumnDescription = "订单状态", DefaultValue = "1", IsNullable = false)]
        public OrderStateEnum OrderState { get; set; }

        /// <summary>
        /// 支付状态
        /// </summary>
        [SugarColumn(ColumnDescription = "支付状态", DefaultValue = "0", IsNullable = false)]
        public OrderPayStateEnum OrderPayState { get; set; }



        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDescription = "备注", DefaultValue = "", IsNullable = true)]
        [MaxLength(300)]
        public string Remark { get; set; }
    }
}
